package com.corpgovernment.permission.entity.db;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Id;
import java.util.List;

/**
 *
 *
 * @author marco.zheng   (cq_zheng@trip.com)
 * @date 2023/8/11
 */
@Getter
@Setter
public class Menu {
    private Long id;
    private String name;
    private Long parentId;
    private Boolean isParentMenu;
    private String icon;
    private String url;
    private String key;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * menu:菜单 button:按钮
     */
    private String type;
    /**
     * 权限标识
     */
    private String permission;
    /**
     * 对应后端的url
     */
    private List<String> serviceUrlList;

    private List<Menu> children;
    private Integer dataPermission;
    /**
     * 是否禁用，0禁用 1启用
     */
    private Integer valid;
    private Integer isDeleted;


}
